package com.ikun.admin.common.constant;

/**
 * @ClassName CommonCharactersConstant
 * @Description:
 * @CreateDate: 2024/7/17 11:33
 */
public class CommonCharactersConstant {

    /**
     * Semicolon | | period | | colon | | comma | | dash | | equals | | plus | minus||
     */
    public static final String SEMICOLON = ";";
    public static final String PERIOD = ".";
    public static final String COLON = ":";
    public static final String COMMA = ",";
    public static final String DASH = "-";
    public static final String EQUALS = "=";
    public static final String PLUS = "+";
    public static final String MINUS = "-";
    public static final String BACKSLASH = "\\";

    // 正则格式1 "示例:key1=value1;key2=value2"
    public static final  String REGEX1 = "^(\\w+"+COLON+"\\w+)("+SEMICOLON+"(\\w+:\\w+))*;$";
    // 正则格式2 "示例:xxx/yyy/zzz ..."
    public static final  String REGEX2 = "^((?:\\w+"+BACKSLASH+"?)+)$";
    // 正则格式3 "示例:xxx:zzz"
    public static final  String REGEX3 = "^((?:\\w+"+COLON+"\\w+))$";
}
